package com.zuoye.day12;

import java.sql.Date;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.OffsetDateTime;
import java.time.format.DateTimeFormatter;


public class MyOrder {
    public int orderId;
    public String orderNumber;
    public float orderSumPrice;
    public LocalDateTime localDateTime;
    public Customer customer;

    public MyOrder(){}
    public MyOrder(int orderId, String orderNumber, float orderSumPrice, LocalDateTime localDateTime, Customer customer) {
        this.orderId = orderId;
        this.orderNumber = orderNumber;
        this.orderSumPrice = orderSumPrice;
        this.localDateTime = localDateTime;;
        this.customer = customer;
    }



    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public String getOrderNumber() {
        return orderNumber;
    }

    public void setOrderNumber(String orderNumber) {
        this.orderNumber = orderNumber;
    }

    public float getOrderSumPrice() {
        return orderSumPrice;
    }

    public void setOrderSumPrice(float orderSumPrice) {
        this.orderSumPrice = orderSumPrice;
    }

    public LocalDateTime getLocalDateTime() {
        return localDateTime;
    }

    public void setLocalDateTime(LocalDateTime localDateTime) {
        this.localDateTime = localDateTime;
    }


    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }


    @Override
    public String toString() {
        return "MyOrder{" +
                "orderId=" + orderId +
                ", orderNumber='" + orderNumber + '\'' +
                ", orderSumPrice=" + orderSumPrice +
                ", localDateTime=" + localDateTime +
                ", customer=" + customer +
                '}';
    }


    public Date getCreatDateTime() {
        return null;
    }
}
